﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace foreach语句
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] a = new int[] { 1, 2, 3, 4 };
            foreach(int i in a)
            {
                int j=3;
                if(i<j)
                    Console.WriteLine(i);
               
            }
        }
    }
}
